<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <meta name="generator" content="HTML Tidy for Linux/x86 (vers 12 April 2005), see www.w3.org" />

  <title>Stepping Through the Execution of a Perl Program</title>
  <link href="book.css" rel="stylesheet" type="text/css" />
  <meta content="DocBook XSL-NS Stylesheets V1.73.0" name="generator" />
  <link rel="start" href="index.html" title="EPIC - User's Guide" />
  <link rel="up" href="ch06.html" title="Using the Perl Debugger" />
  <link rel="prev" href="ch06s04.html" title="Views in the Debug Perspective" />
  <link rel="next" href="ch07.html" title="RegExp Plug-in" />
</head>

<body>
  <div class="section" lang="en" xml:lang="en">
    <div class="titlepage">
      <div>
        <div>
          <h2 class="title" style="clear: both"><a id="N10A20" name="N10A20"></a>Stepping Through
          the Execution of a Perl Program</h2>
        </div>
      </div>
    </div>

    <p>When a thread is suspended, the step controls can be used to step through the execution of
    the program line-by-line. If a breakpoint is encountered while performing a step operation, the
    execution will suspend at the breakpoint and the step operation is ended.</p>

    <div class="section" lang="en" xml:lang="en">
      <div class="titlepage">
        <div>
          <div>
            <h3 class="title"><a id="N10A25" name="N10A25"></a>Step Over</h3>
          </div>
        </div>
      </div>

      <div class="orderedlist">
        <ol type="1">
          <li>
            <p>Select a stack frame in the <span class="guilabel">Debug</span> view. The current
            line of execution in that stack frame is highlighted in the editor in the <span class=
            "guilabel">Debug</span> perspective.</p>
          </li>

          <li>
            <p>Click the <span class="guibutton">Step Over</span> button (<span class=
            "inlinemediaobject"><img src="images/step_over.gif" /></span>) in the <span class=
            "guilabel">Debug</span> view toolbar, or press the <span class=
            "keycap"><strong>F6</strong></span> key. The currently selected line is executed and
            suspends on the next executable line.</p>
          </li>
        </ol>
      </div>
    </div>

    <div class="section" lang="en" xml:lang="en">
      <div class="titlepage">
        <div>
          <div>
            <h3 class="title"><a id="N10A4B" name="N10A4B"></a>Step Into</h3>
          </div>
        </div>
      </div>

      <div class="orderedlist">
        <ol type="1">
          <li>
            <p>Select a stack frame in the <span class="guilabel">Debug</span> view. The current
            line of execution in that stack frame is highlighted in the editor in the <span class=
            "guilabel">Debug</span> perspective.</p>
          </li>

          <li>
            <p>Click the <span class="guibutton">Step Into</span> button (<span class=
            "inlinemediaobject"><img src="images/step_into.gif" /></span>) in the <span class=
            "guilabel">Debug</span> view toolbar, or press the <span class=
            "keycap"><strong>F5</strong></span> key. The next expression on the currently selected
            line to be executed is invoked, and execution suspends at the next executable line in
            the method that is invoked.</p>
          </li>
        </ol>
      </div>
    </div>

    <div class="section" lang="en" xml:lang="en">
      <div class="titlepage">
        <div>
          <div>
            <h3 class="title"><a id="N10A71" name="N10A71"></a>Run to Return</h3>
          </div>
        </div>
      </div>

      <div class="orderedlist">
        <ol type="1">
          <li>
            <p>Select a stack frame in the <span class="guilabel">Debug</span> view. The current
            line of execution in that stack frame is highlighted in the editor in the <span class=
            "guilabel">Debug</span> perspective.</p>
          </li>

          <li>
            <p>Click the <span class="guibutton">Run To Return</span> button (<span class=
            "inlinemediaobject"><img src="images/step_out.gif" /></span>) in the <span class=
            "guilabel">Debug</span> view toolbar, or press the <span class=
            "keycap"><strong>F7</strong></span> key. Execution resumes until the next return
            statement in the current subroutine is executed, and execution suspends on the next
            executable line.</p>
          </li>
        </ol>
      </div>
    </div>
  </div>
</body>
</html>
